using System;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities {
    public class Datatable {
        
        #region Private Classes (1)
        
        private class Constants {
            public const bool DEFAULT_ISLEGENDKEYVISIBLE_VALUE = true;
            public const bool DEFAULT_VISIBLE_VALUE = false;
        }
        
        #endregion

        private bool mIsVisible = Constants.DEFAULT_VISIBLE_VALUE;

        private bool mIsLegendKeyVisible = Constants.DEFAULT_ISLEGENDKEYVISIBLE_VALUE;

        /// <summary>
        /// Is the Datatable visible?
        /// </summary>
        public bool IsVisible {
            get {
                return mIsVisible;
            }
            set {
                mIsVisible = value;
            }
        }

        /// <summary>
        /// Is the legend key visible in the Datatable?
        /// </summary>
        public bool IsLegendKeyVisible {
            get {
                return mIsLegendKeyVisible;
            }
            set {
                mIsLegendKeyVisible = value;
            }
        }

    }
}
